package com.zmn.oms.common.constant;

import com.zmn.common.dictionary.DictModel;
import java.util.ArrayList;
import java.util.List;

/**
 * 类描述：字典数据
 * @author lujia
 * @date 2018/11/08 14:50
 */
public class MapDataConsts {

    /**
     * 用户评价
     */
    public final static int USER_COMMENT = 1;

    /**
     * 后台评价
     */
    public final static int PLAT_COMMENT = 2;

    /**
     * 回访
     */
    public final static int REPLY = 3;

    /**
     * 用户弃单
     */
    public final static int USER_CANCEL = 4;

    /**
     * 后台弃单
     */
    public final static int PLAT_CANCEL = 5;

    public static String getType(int type) {
        switch (type) {
            case USER_COMMENT :
                return "用户评价";
            case PLAT_COMMENT :
                return "后台评价";
            case REPLY :
                return "回访";
            case USER_CANCEL :
                return "用户取消";
            case PLAT_CANCEL :
                return "后台取消";
            default:
                return "未知";
        }
    }
    public static List<DictModel> getTypeList() {
        List<DictModel> items = new ArrayList();
        items.add(new DictModel(USER_COMMENT, "用户评价"));
        items.add(new DictModel(PLAT_COMMENT, "后台评价"));
        items.add(new DictModel(REPLY, "回访"));
        items.add(new DictModel(USER_CANCEL, "用户取消"));
        items.add(new DictModel(PLAT_CANCEL, "后台取消"));
        return items;
    }
}
